/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_components/zhiqim_admin.htm
 *
 * Zhiqim Admin is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.lottery.dbo;

import java.io.Serializable;
import java.sql.Timestamp;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 抽奖信息表 对应表《LOTTERY_INFO》
 */
@AnAlias("LotteryInfo")
@AnNew
@AnTable(table="LOTTERY_INFO", key="LOTTERY_ID", type="InnoDB")
public class LotteryInfo implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="LOTTERY_ID", type="long", notNull=true)    private long lotteryId;    //1.抽奖编号
    @AnTableField(column="LOTTERY_NAME", type="string,32", notNull=true)    private String lotteryName;    //2.抽奖名称
    @AnTableField(column="LOTTERY_STATUS", type="byte", notNull=true)    private int lotteryStatus;    //3.抽奖状态，0：表示初始，可以进行用户调整                 10：表示开始开奖，不再支持用户调整                 11：表示开奖中，不再支持中奖数调整                 12：表示开奖结束，用户和抽奖信息都不支持调整
    @AnTableField(column="LOTTERY_ACTIVE", type="boolean", notNull=true)    private boolean lotteryActive;    //4.抽奖激活状态，只允许一个活动是激活的
    @AnTableField(column="LOTTERY_LINE", type="int", notNull=true)    private int lotteryLine;    //5.抽奖显示行数
    @AnTableField(column="LOTTERY_ROW", type="int", notNull=true)    private int lotteryRow;    //6.抽奖显示列数
    @AnTableField(column="LOTTERY_LUCK_NUM", type="int", notNull=true)    private int lotteryLuckNum;    //7.总中奖数
    @AnTableField(column="LOTTERY_LUCK_PRE_NUM", type="int", notNull=true)    private int lotteryLuckPreNum;    //8.每次中奖数
    @AnTableField(column="LOTTERY_USER_NAME_TYPE", type="byte", notNull=true)    private int lotteryUserNameType;    //9.用户名称类型，0：表示正常显示，1：表示只留第一字符
    @AnTableField(column="LOTTERY_CREATED", type="datetime", notNull=true)    private Timestamp lotteryCreated;    //10.抽奖创建时间

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getLotteryId()
    {
        return lotteryId;
    }

    public void setLotteryId(long lotteryId)
    {
        this.lotteryId = lotteryId;
    }

    public String getLotteryName()
    {
        return lotteryName;
    }

    public void setLotteryName(String lotteryName)
    {
        this.lotteryName = lotteryName;
    }

    public int getLotteryStatus()
    {
        return lotteryStatus;
    }

    public void setLotteryStatus(int lotteryStatus)
    {
        this.lotteryStatus = lotteryStatus;
    }

    public boolean isLotteryActive()
    {
        return lotteryActive;
    }

    public void setLotteryActive(boolean lotteryActive)
    {
        this.lotteryActive = lotteryActive;
    }

    public int getLotteryLine()
    {
        return lotteryLine;
    }

    public void setLotteryLine(int lotteryLine)
    {
        this.lotteryLine = lotteryLine;
    }

    public int getLotteryRow()
    {
        return lotteryRow;
    }

    public void setLotteryRow(int lotteryRow)
    {
        this.lotteryRow = lotteryRow;
    }

    public int getLotteryLuckNum()
    {
        return lotteryLuckNum;
    }

    public void setLotteryLuckNum(int lotteryLuckNum)
    {
        this.lotteryLuckNum = lotteryLuckNum;
    }

    public int getLotteryLuckPreNum()
    {
        return lotteryLuckPreNum;
    }

    public void setLotteryLuckPreNum(int lotteryLuckPreNum)
    {
        this.lotteryLuckPreNum = lotteryLuckPreNum;
    }

    public int getLotteryUserNameType()
    {
        return lotteryUserNameType;
    }

    public void setLotteryUserNameType(int lotteryUserNameType)
    {
        this.lotteryUserNameType = lotteryUserNameType;
    }

    public Timestamp getLotteryCreated()
    {
        return lotteryCreated;
    }

    public void setLotteryCreated(Timestamp lotteryCreated)
    {
        this.lotteryCreated = lotteryCreated;
    }

}
